export function useMinAndMax(min, max) {
    const setFontSizeLimit = (fontSize) => {
        const formatValue = Number(String(fontSize || 0).split('.')[0])
        if (formatValue > 32) {
            return 32
        }
        if (formatValue < 12) {
            return 12
        }
        return formatValue
    }
    return {
        setFontSizeLimit
    }
}
